<script>
	$("#stars").rater({max:5,min:1,image:'../images/star2.gif',width: 16,height:16,clicked:false,rating:'current_vul',value:<%=params[:rating]%>});
	$("#rating1").rater({max:5,min:1,image:'../images/star2.gif',width: 16,height:16,clicked:false,rating:'current_vul0'});
	$("#rating2").rater({max:5,min:1,image:'../images/star2.gif',width: 16,height:16,clicked:false,rating:'current_vul1'});
	$("#rating3").rater({max:5,min:1,image:'../images/star2.gif',width: 16,height:16,clicked:false,rating:'current_vul2'});

	$('#showtags').click(function(){
		$('#additional').toggle();
		//$('#nyroModalWrapper').css('height','auto')
		var rel = $(this).attr('rel')
		$(this).attr('rel',$(this).text())
		$(this).text(rel)
	})
	$('#rateform').submit(function(){
		$('#btn ul').hide();
		$('#btn').append('正在提交........')
	})
</script>
<div id="bd">
<form action="<%=params[:id]%>/rate/<%= params[:rating] %>" id="rateform" method="POST">
<input type="hidden" name="current_vul" id="current_vul">
<input type="hidden" name="current_vul0" id="current_vul">
<input type="hidden" name="current_vul1" id="current_vul">
<input type="hidden" name="current_vul2" id="current_vul">
<input type="hidden" name="submit" value="1">
<h2>我买过 &nbsp; ·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;</h2>
<ul class="rate"><li><p>给个评价吧?</p></li><li id="stars"></li></ul>
<ul class="rateAll" id="all_ratings">
	<li><p>外观:</p></li><li id="rating1"><ul class="rater-star" style="background-image: url(../images/star2.gif); height: 16px; width: 80px; "><li class="rater-star-item-current" id="current1" style="background-image: url(../images/star2.gif); height: 16px; width: 0px; z-index: 6; "></li><li class="rater-star-item" title="1" style="height: 16px; width: 16px; z-index: 5; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="2" style="height: 16px; width: 32px; z-index: 4; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="3" style="height: 16px; width: 48px; z-index: 3; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="4" style="height: 16px; width: 64px; z-index: 2; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="5" style="height: 16px; width: 80px; z-index: 1; background-image: url(../images/star2.gif); "></li></ul></li>
	<li><p>质地:</p></li><li id="rating2"><ul class="rater-star" style="background-image: url(../images/star2.gif); height: 16px; width: 80px; "><li class="rater-star-item-current" id="current2" style="background-image: url(../images/star2.gif); height: 16px; width: 0px; z-index: 6; "></li><li class="rater-star-item" title="1" style="height: 16px; width: 16px; z-index: 5; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="2" style="height: 16px; width: 32px; z-index: 4; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="3" style="height: 16px; width: 48px; z-index: 3; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="4" style="height: 16px; width: 64px; z-index: 2; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="5" style="height: 16px; width: 80px; z-index: 1; background-image: url(../images/star2.gif); "></li></ul></li>
	<li><p>舒适度:</p></li><li id="rating3"><ul class="rater-star" style="background-image: url(../images/star2.gif); height: 16px; width: 80px; "><li class="rater-star-item-current" id="current3" style="background-image: url(../images/star2.gif); height: 16px; width: 0px; z-index: 6;"></li><li class="rater-star-item" title="1" style="height: 16px; width: 16px; z-index: 5; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="2" style="height: 16px; width: 32px; z-index: 4; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="3" style="height: 16px; width: 48px; z-index: 3; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="4" style="height: 16px; width: 64px; z-index: 2; background-image: url(../images/star2.gif); "></li><li class="rater-star-item" title="5" style="height: 16px; width: 80px; z-index: 1; background-image: url(../images/star2.gif); "></li></ul></li></ul>
<a class="rr" id="showtags" rel="高级(标签和短评) ▼" href="javascript:void(0)">缩起 ▲</a>
<div class="clear"></div>
<div id="additional">
<ul id="advtags" class="interest_form ">
    <li>标签(多个标签用空格分隔): </li>
    <li><input name="tags" type="text" style="width: 250px;"></li>
    <li>简短评论:</li>
    <li><textarea name="comment" style="width:450px;height:65px" id="comment"></textarea>
<label id="left_n" class="pl">140</label> <div id="error" class="errnotnull"></div></li>
</ul>
</div>
<div id="btn">
<ul class="interest_form" id="submits">
    <li class="mt15">
        <input type="submit" value="提交">
        <input type="button" id="cancel" name="cancel" value="取消" class="nyroModalClose">
    </li>
</ul>
</div>
</form>
</div>